package org.andromeo.connectionapi;

import java.io.IOException;

import org.andromeo.ARException;
import org.andromeo.GRSession;
import org.andromeo.util.ARRequester;

public class LogoutProcessor {

	public static int sendLogoutRequest(GRSession grsession) throws ARException, IOException {
		String url = grsession.getGrurl();
		url += grsession.getPhpSessionID();
		url += "/main/logout/";
		ARRequester.sendRequest(grsession, url, "");
		grsession.setSessionStatus(GRSession.STATUS_OK_OFFLINE);
		return 0;
	}

//	public int sendLogoutRequest() {
//		sendRequest();
//		return 0;
//	}

}
